<template>
  <div>
    <h1>Nuxt 3 + Element Plus</h1>
    <el-button type="primary" @click="handleClick">点击我</el-button>
    <el-input v-model="inputValue" placeholder="请输入内容" />
    <p>输入的内容：{{ inputValue }}</p>
  </div>
</template>

<script setup>
import { ElMessage } from "element-plus";
const inputValue = ref("");

const handleClick = () => {
  ElMessage.success("按钮被点击了！");
};
</script>

<style scoped>
h1 {
  margin-bottom: 20px;
}
</style>
